package kr.zetaomicron.ultrasolitaire;

import kr.zetaomicron.framework.math.Rectangle;
import kr.zetaomicron.framework.math.Vector2;
import android.util.Log;

public class GameSettings {
	Vector2 dlgCoord;
	public GameSettings(float x, float y) {
		dlgCoord = new Vector2(x, y);
	}
	
	// width == 480, height == 900
	public Vector2 getCoordsTitle() {
		return new Vector2(dlgCoord.x + 170.f, dlgCoord.y);
	}
	
	public Vector2 getCoordsMenuSuits() {
		return new Vector2(dlgCoord.x + 90.f, dlgCoord.y + 275.f);
	}
	
	public Vector2 getCoordsMenuDecks() {
		return new Vector2(dlgCoord.x + 30.f, dlgCoord.y + 275.f);
	}
	
	public Vector2 getCoordsMenuRanks() {
		return new Vector2(dlgCoord.x - 30.f, dlgCoord.y + 275.f);
	}
	
	public Vector2 getCoordsMenuDeal() {
		return new Vector2(dlgCoord.x - 90.f, dlgCoord.y + 275.f);
	}
	
	public Vector2 getCoordsBtnOk() {
		return new Vector2(dlgCoord.x - 165.f, dlgCoord.y + 225.f);
	}
	
	public Rectangle getRectBtnOk() {
		return new Rectangle(dlgCoord.x - 165.f - 30.f, dlgCoord.y + 225.f - 125.f, 60.f, 250.f);
	}
	
	public Vector2 getCoordsBtnCancel() {
		return new Vector2(dlgCoord.x - 165.f, dlgCoord.y - 225.f);
	}
	
	public Rectangle getRectBtnCancel() {
		return new Rectangle(dlgCoord.x - 165.f - 30.f, dlgCoord.y - 225.f - 125.f, 60.f, 250.f);
	}
	
	public Vector2 getCoordsIcons(int row, int col) {
		return new Vector2(dlgCoord.x + 90.f - row * 60.f, dlgCoord.y + 100.f - col * 150.f + 60.f);
	}
	
	public Rectangle getRectIcons(int row, int col) {
		return new Rectangle(dlgCoord.x + 90.f - row * 60.f - 30.f, dlgCoord.y + 100.f - col * 150.f + 60.f - 120.0f, 60.f, 150.f);
	}

	public Vector2 getCoordsDigits(int row, int col, boolean ten_one) {
		return new Vector2(dlgCoord.x + 90.f - row * 60.f, dlgCoord.y + 100.f - col * 150.f + (ten_one ? 25.f : 0));
	}
}